#pragma once
#include "BaseBuff.h"

#define PROTECT_BOX CCSizeMake(200, 0)

class SpeedRunBuff : public BaseBuff
{
public:
	SpeedRunBuff(void);
	~SpeedRunBuff(void);

	virtual bool init();

	virtual void onStart( StateBar* stateBar );

	virtual void onComplete();

	void processing(float dt);

	CC_SYNTHESIZE_RETAIN(CCArray*, _listWave, Waves);
	CC_SYNTHESIZE(CCSize, _protectBoxBK, ProtectBoxBK);
	float _currentTime;

	CREATE_FUNC(SpeedRunBuff);
};

